<template>
  <div id="app">
    <template v-if="isLogin">
      <BasicLayout/>
    </template>
    <template v-if="!isLogin">
      <Login/>
    </template>
  </div>
</template>


<script>
import BasicLayout from "@/layout/basicLayout/BasicLayout"
import AnotherLayout from "@/layout/anotherLayout/AnotherLayout"
import Login from "@/views/login/Login"
export default {
  name:"App",
  components: {Login, AnotherLayout, BasicLayout},
  computed:{
    isLogin() {
      return !!this.$store.state.userinfo
    }
  }
}
</script>

<style lang="scss" scoped>
</style>
